package com.you.atlas.web.member.module.screen;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.Context;
import com.alibaba.citrus.turbine.Navigator;
import com.alibaba.citrus.turbine.dataresolver.Param;
import com.you.atlas.biz.member.service.FollowQueryService;
import com.you.atlas.web.member.module.MemberModule;
import com.you.common.ibatis.data.DataList;

public class FollowList extends MemberModule {

    @Autowired
    private FollowQueryService followQueryService;

    public void execute(@Param("pageNo") int pageNo, @Param("id") Long memberId, Context context,
                        Navigator navigator) {
        if (!checkAuth(memberId, navigator, context)) {
            return;
        }

        DataList dataList = followQueryService.queryFollow(memberId);
        context.put("fansList", dataList.getData());
    }
}
